import '../constants/index.dart';
import '../utils/RequestDio.dart';

Future<dynamic> sendCodeAPI(params) =>
    requestDio.get(HTTP_PATH.SEND_CODE, params: params);
Future<dynamic> loginAPI(data) => requestDio.post(HTTP_PATH.LOGIN, data: data);
Future<dynamic> getUserInfoAPI() => requestDio.get(HTTP_PATH.USER_INFO);
Future updateUserInfoAPI(data) =>
    requestDio.put(HTTP_PATH.USER_INFO, data: data);
// 上传接口
Future<dynamic> uploadPhotoAPI(data) =>
    requestDio.upload(HTTP_PATH.UPLOAD, data: data);
